<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
State (Sea Glass Look and Feel for Swing 0.2 API)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="State (Sea Glass Look and Feel for Swing 0.2 API)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/State.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/SplitPaneVerticalState.html" title="class in com.seaglasslookandfeel.state"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.StandardState.html" title="class in com.seaglasslookandfeel.state"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/seaglasslookandfeel/state/State.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="State.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.seaglasslookandfeel.state</FONT>
<BR>
Class State&lt;T extends <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&gt;</H2>
<PRE>
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.seaglasslookandfeel.state.State&lt;T&gt;</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/seaglasslookandfeel/state/ComboBoxArrowButtonEditableState.html" title="class in com.seaglasslookandfeel.state">ComboBoxArrowButtonEditableState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ComboBoxEditableState.html" title="class in com.seaglasslookandfeel.state">ComboBoxEditableState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ControlInToolBarState.html" title="class in com.seaglasslookandfeel.state">ControlInToolBarState</A>, <A HREF="../../../com/seaglasslookandfeel/state/InternalFrameWindowFocusedState.html" title="class in com.seaglasslookandfeel.state">InternalFrameWindowFocusedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/MenuNotUnified.html" title="class in com.seaglasslookandfeel.state">MenuNotUnified</A>, <A HREF="../../../com/seaglasslookandfeel/state/ProgressBarFinishedState.html" title="class in com.seaglasslookandfeel.state">ProgressBarFinishedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ProgressBarIndeterminateState.html" title="class in com.seaglasslookandfeel.state">ProgressBarIndeterminateState</A>, <A HREF="../../../com/seaglasslookandfeel/state/RootPaneNoFrameState.html" title="class in com.seaglasslookandfeel.state">RootPaneNoFrameState</A>, <A HREF="../../../com/seaglasslookandfeel/state/RootPaneWindowFocusedState.html" title="class in com.seaglasslookandfeel.state">RootPaneWindowFocusedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ScrollBarButtonIsIncreaseButtonState.html" title="class in com.seaglasslookandfeel.state">ScrollBarButtonIsIncreaseButtonState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ScrollBarButtonsTogetherState.html" title="class in com.seaglasslookandfeel.state">ScrollBarButtonsTogetherState</A>, <A HREF="../../../com/seaglasslookandfeel/state/SearchFieldHasPopupState.html" title="class in com.seaglasslookandfeel.state">SearchFieldHasPopupState</A>, <A HREF="../../../com/seaglasslookandfeel/state/SliderArrowShapeState.html" title="class in com.seaglasslookandfeel.state">SliderArrowShapeState</A>, <A HREF="../../../com/seaglasslookandfeel/state/SplitPaneDividerVerticalState.html" title="class in com.seaglasslookandfeel.state">SplitPaneDividerVerticalState</A>, <A HREF="../../../com/seaglasslookandfeel/state/SplitPaneVerticalState.html" title="class in com.seaglasslookandfeel.state">SplitPaneVerticalState</A>, <A HREF="../../../com/seaglasslookandfeel/state/State.StandardState.html" title="class in com.seaglasslookandfeel.state">State.StandardState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TabbedPaneBottomTabState.html" title="class in com.seaglasslookandfeel.state">TabbedPaneBottomTabState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TabbedPaneLeftTabState.html" title="class in com.seaglasslookandfeel.state">TabbedPaneLeftTabState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TabbedPaneRightTabState.html" title="class in com.seaglasslookandfeel.state">TabbedPaneRightTabState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TabbedPaneTopTabState.html" title="class in com.seaglasslookandfeel.state">TabbedPaneTopTabState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TableHeaderRendererSortedState.html" title="class in com.seaglasslookandfeel.state">TableHeaderRendererSortedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TextAreaNotInScrollPaneState.html" title="class in com.seaglasslookandfeel.state">TextAreaNotInScrollPaneState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TextFieldIsSearchState.html" title="class in com.seaglasslookandfeel.state">TextFieldIsSearchState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneCloseButtonWindowModifiedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneCloseButtonWindowModifiedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneCloseButtonWindowNotFocusedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneCloseButtonWindowNotFocusedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneIconifyButtonWindowMinimizedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneIconifyButtonWindowMinimizedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneIconifyButtonWindowNotFocusedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneIconifyButtonWindowNotFocusedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneMaximizeButtonWindowMaximizedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneMaximizeButtonWindowMaximizedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneMaximizeButtonWindowNotFocusedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneMaximizeButtonWindowNotFocusedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneMenuButtonWindowNotFocusedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneMenuButtonWindowNotFocusedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/TitlePaneWindowFocusedState.html" title="class in com.seaglasslookandfeel.state">TitlePaneWindowFocusedState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ToolBarEastState.html" title="class in com.seaglasslookandfeel.state">ToolBarEastState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ToolBarHasNorthToolBarState.html" title="class in com.seaglasslookandfeel.state">ToolBarHasNorthToolBarState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ToolBarNorthState.html" title="class in com.seaglasslookandfeel.state">ToolBarNorthState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ToolBarSouthState.html" title="class in com.seaglasslookandfeel.state">ToolBarSouthState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ToolBarWestState.html" title="class in com.seaglasslookandfeel.state">ToolBarWestState</A>, <A HREF="../../../com/seaglasslookandfeel/state/ToolBarWindowIsActiveState.html" title="class in com.seaglasslookandfeel.state">ToolBarWindowIsActiveState</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>State&lt;T extends <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&gt;</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
</PRE>

<P>
<p>Represents a built in, or custom, state in Sea Glass.</p>

 <p>Synth provides several built in states, which are:</p>

 <ul>
   <li>Enabled</li>
   <li>Mouse Over</li>
   <li>Pressed</li>
   <li>Disabled</li>
   <li>Focused</li>
   <li>Selected</li>
   <li>Default</li>
 </ul>

 <p>However, there are many more states that could be described in a
 LookAndFeel, and it would be nice to style components differently based on
 these different states. For example, a progress bar could be "indeterminate".
 It would be very convenient to allow this to be defined as a "state".</p>

 <p>This class, State, is intended to be used for such situations. Simply
 implement the abstract #isInState method. It returns true if the given
 JComponent is "in this state", false otherwise. This method will be called
 <em>many</em> times in <em>performance sensitive loops</em>. It must execute
 very quickly.</p>

 <p>For example, the following might be an implementation of a custom
 "Indeterminate" state for JProgressBars:</p>

 <pre>
 &lt;code&gt;
     public final class IndeterminateState extends State&lt;JProgressBar&gt; {
         public IndeterminateState() {
             super(&quot;Indeterminate&quot;);
         }

         &#064;Override
         protected boolean isInState(JProgressBar c) {
             return c.isIndeterminate();
         }
     }
 &lt;/code&gt;
 </pre>

 <p>Based on Nimbus's State class, which has too much package local stuff.</p>
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.StandardState.html" title="class in com.seaglasslookandfeel.state">State.StandardState</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DOCUMENT ME!</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#Default">Default</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#Disabled">Disabled</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disabled state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#Enabled">Enabled</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enabled state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#Focused">Focused</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Focused state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#MouseOver">MouseOver</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MouseOver state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#Pressed">Pressed</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pressed state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#Selected">Selected</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selected state.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#State(java.lang.String)">State</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new custom State.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#getName()">getName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DOCUMENT ME!</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.StandardState.html" title="class in com.seaglasslookandfeel.state">State.StandardState</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#getStandardState(java.lang.String)">getStandardState</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DOCUMENT ME!</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#isInState(T)">isInState</A></B>(<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="type parameter in State">T</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether the specified JComponent is in the custom state
 represented by this class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#isInState(T, int)">isInState</A></B>(<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="type parameter in State">T</A>&nbsp;c,
          int&nbsp;s)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the main entry point, called by NimbusStyle.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#isStandardStateName(java.lang.String)">isStandardStateName</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DOCUMENT ME!</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/seaglasslookandfeel/state/State.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="Enabled"><!-- --></A><H3>
Enabled</H3>
<PRE>
public static final <A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A> <B>Enabled</B></PRE>
<DL>
<DD>Enabled state.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="MouseOver"><!-- --></A><H3>
MouseOver</H3>
<PRE>
public static final <A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A> <B>MouseOver</B></PRE>
<DL>
<DD>MouseOver state.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="Pressed"><!-- --></A><H3>
Pressed</H3>
<PRE>
public static final <A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A> <B>Pressed</B></PRE>
<DL>
<DD>Pressed state.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="Disabled"><!-- --></A><H3>
Disabled</H3>
<PRE>
public static final <A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A> <B>Disabled</B></PRE>
<DL>
<DD>Disabled state.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="Focused"><!-- --></A><H3>
Focused</H3>
<PRE>
public static final <A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A> <B>Focused</B></PRE>
<DL>
<DD>Focused state.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="Selected"><!-- --></A><H3>
Selected</H3>
<PRE>
public static final <A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A> <B>Selected</B></PRE>
<DL>
<DD>Selected state.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="Default"><!-- --></A><H3>
Default</H3>
<PRE>
public static final <A HREF="../../../com/seaglasslookandfeel/state/State.html" title="class in com.seaglasslookandfeel.state">State</A> <B>Default</B></PRE>
<DL>
<DD>Default state.
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="State(java.lang.String)"><!-- --></A><H3>
State</H3>
<PRE>
protected <B>State</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
<DL>
<DD><p>Create a new custom State. Specify the name for the state. The name
 should be unique within the states set for any one particular component.
 The name of the state should coincide with the name used in UIDefaults.
 </p>

 <p>For example, the following would be correct:</p>

 <pre>
 &lt;code&gt;
     defaults.put(&quot;Button.States&quot;, &quot;Enabled, Foo, Disabled&quot;);
     defaults.put(&quot;Button.Foo&quot;, new FooState(&quot;Foo&quot;));
 &lt;/code&gt;
 </pre>
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - a simple user friendly name for the state, such as
             "Indeterminate" or "EmbeddedPanel" or "Blurred". It is
             customary to use camel case, with the first letter
             capitalized.</DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang"><CODE>Object.toString()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isInState(javax.swing.JComponent,int)"><!-- --></A><A NAME="isInState(T, int)"><!-- --></A><H3>
isInState</H3>
<PRE>
public boolean <B>isInState</B>(<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="type parameter in State">T</A>&nbsp;c,
                         int&nbsp;s)</PRE>
<DL>
<DD><p>This is the main entry point, called by NimbusStyle.</p>

 <p>There are both custom states and standard states. Standard states
 correlate to the states defined in SynthConstants. When a UI delegate
 constructs a SynthContext, it specifies the state that the component is
 in according to the states defined in SynthConstants. Our NimbusStyle
 will then take this state, and query each State instance in the style
 asking whether isInState(c, s).</p>

 <p>Now, only the standard states care about the "s" param. So we have
 this odd arrangement:</p>

 <ul>
   <li>NimbusStyle calls State.isInState(c, s)</li>
   <li>State.isInState(c, s) simply delegates to State.isInState(c)</li>
   <li><em>EXCEPT</em>, StandardState overrides State.isInState(c, s) and
     returns directly from that method after checking its state, and does
     not call isInState(c) (since it is not needed for standard
     states).</li>
 </ul>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - DOCUMENT ME!<DD><CODE>s</CODE> - DOCUMENT ME!
<DT><B>Returns:</B><DD>DOCUMENT ME!</DL>
</DD>
</DL>
<HR>

<A NAME="isInState(javax.swing.JComponent)"><!-- --></A><A NAME="isInState(T)"><!-- --></A><H3>
isInState</H3>
<PRE>
public abstract boolean <B>isInState</B>(<A HREF="../../../com/seaglasslookandfeel/state/State.html" title="type parameter in State">T</A>&nbsp;c)</PRE>
<DL>
<DD><p>Gets whether the specified JComponent is in the custom state
 represented by this class. <em>This is an extremely performance sensitive
 loop.</em> Please take proper precautions to ensure that it executes
 quickly.</p>

 <p>Nimbus uses this method to help determine what state a JComponent is
 in. For example, a custom State could exist for JProgressBar such that it
 would return <code>true</code> when the progress bar is indeterminate.
 Such an implementation of this method would simply be:</p>

 <pre>
 &lt;code&gt; return c.isIndeterminate();&lt;/code&gt;
 </pre>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the JComponent to test. This will never be null.
<DT><B>Returns:</B><DD>true if <code>c</code> is in the custom state represented by this
         <code>State</code> instance</DL>
</DD>
</DL>
<HR>

<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE>
<DL>
<DD>DOCUMENT ME!
<P>
<DD><DL>

<DT><B>Returns:</B><DD>DOCUMENT ME!</DL>
</DD>
</DL>
<HR>

<A NAME="isStandardStateName(java.lang.String)"><!-- --></A><H3>
isStandardStateName</H3>
<PRE>
public static boolean <B>isStandardStateName</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
<DL>
<DD>DOCUMENT ME!
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - DOCUMENT ME!
<DT><B>Returns:</B><DD>DOCUMENT ME!</DL>
</DD>
</DL>
<HR>

<A NAME="getStandardState(java.lang.String)"><!-- --></A><H3>
getStandardState</H3>
<PRE>
public static <A HREF="../../../com/seaglasslookandfeel/state/State.StandardState.html" title="class in com.seaglasslookandfeel.state">State.StandardState</A> <B>getStandardState</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
<DL>
<DD>DOCUMENT ME!
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - DOCUMENT ME!
<DT><B>Returns:</B><DD>DOCUMENT ME!</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/State.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/SplitPaneVerticalState.html" title="class in com.seaglasslookandfeel.state"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/seaglasslookandfeel/state/State.StandardState.html" title="class in com.seaglasslookandfeel.state"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/seaglasslookandfeel/state/State.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="State.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright &#169; 2009-2012 <a href="http://seaglasslookandfeel.com">seaglasslookandfeel.com</a>. All Rights Reserved.
</BODY>
</HTML>
